package com.oilsection.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oilsection.demo.po.Jcd;
import com.oilsection.demo.po.Jz;

public interface JcdMapper extends BaseMapper<Jcd> {
    default void updateLocation(String jcdId, String jcdXpoint, String jcdYpoint) {
        update(new LambdaUpdateWrapper<Jcd>().eq(Jcd::getId, jcdId).set(Jcd::getJcdXpoint, jcdXpoint).set(Jcd::getJcdYpoint, jcdYpoint));
    }
}
